export default [{
    path: '/login',
    name: "login",
    component: () => import('@/views/Login.vue'),
    // 不在tab导航中显示
    // 因为调整了逻辑，这里不配置这个也不会在tab导航中显示
    hidden: true,
    meta: {
        noAuth: true
    }
},
{
    path: '/',
    name: "main",
    // 默认跳转首页
    redirect: '/index',
    component: () => import('@/layout/main/Home.vue'),
    children: [
        {
            // 刷新页面
            name: "Refresh",
            path: '/Refresh',
            // 隐藏不在tab标签中显示
            hidden: true,
            component: () => import('@/views/Refresh.vue')
        },
        {
            name: "index",
            path: 'index',
            meta: {
                cache: true,
                title: "首页"
            },
            component: () => import('@/views/welcome/Home.vue')
        },
        {
            name: "agentTable",
            path: '/agentTable',
            meta: {
                cache: true,
                title: "代理商管理"
            },
            component: () => import('@/views/purview/agent/Table.vue')
        },
        {
            name: "purviewRoleTable",
            path: '/purviewRoleTable',
            meta: {
                cache: true,
                title: "角色管理"
            },
            component: () => import('@/views/purview/role/Table.vue')
        },
        {
            name: "purviewDepartmentHome",
            path: '/purviewDepartmentHome',
            meta: {
                cache: true,
                title: "部门管理"
            },
            component: () => import('@/views/purview/department/Home.vue')
        },
        {
            name: "purviewStaffTable",
            path: '/purviewStaffTable',
            meta: {
                cache: true,
                title: "员工管理"
            },
            component: () => import('@/views/purview/staff/Table.vue')
        },
        {
            name: "parkManagement",
            path: '/parkManagement',
            meta: {
                title: "管理小区"
            },
            component: () => import('@/views/park/Management.vue')
        },
        {
            name: "parkTable",
            path: '/parkTable',
            meta: {
                cache: true,
                title: "园区管理"
            },
            component: () => import('@/views/park/yard/Table.vue')
        },
        {
            name: "parkParamTable",
            path: '/parkParamTable/:id',
            meta: {
                parentName: 'parkTable',
                title: "园区配置"
            },
            component: () => import('@/views/park/yard/param/Table.vue')
        },
        {
            name: "systemAccessHome",
            path: '/systemAccessHome',
            meta: {
                cache: true,
                title: "菜单权限"
            },
            component: () => import('@/views/system/access/Home.vue')
        },
        {
            name: "parkOrgHome",
            path: '/parkOrgHome',
            meta: {
                cache: false,
                title: "住户组织"
            },
            component: () => import('@/views/park/org/Home.vue')
        },
        {
            name: "parkGuestTable",
            path: '/parkGuestTable',
            meta: {
                cache: false,
                title: "访客人员"
            },
            component: () => import('@/views/vistor/guest/Table.vue')
        },
        {
            name: "parkTenantTable",
            path: '/parkTenantTable',
            meta: {
                cache: false,
                title: "住户管理"
            },
            component: () => import('@/views/park/tenant/Table.vue')
        },
        {
            name: "parkTenantInfoHome",
            path: '/parkTenantInfoHome/:id',
            meta: {
                title: "住户详情",
                parentName: 'parkTenantTable'
            },
            component: () => import('@/views/park/tenant/info/Home.vue')
        },
        {
            name: "parkTenantAuditTable",
            path: '/parkTenantAuditTable',
            meta: {
                cache: true,
                title: "住户审核"
            },
            component: () => import('@/views/park/tenantaudit/Table.vue')
        } ,
        //  以下是设备管理相关页面路由
        {
            name: "equipmentManageDoorTable",
            path: '/equipmentManageDoorTable',
            meta: {
                cache: true,
                title: "门禁池"
            },
            component: () => import('@/views/equipment/door/manage/Managedoor.vue')
        },
        {
            name: "equipmentDoorHome",
            path: '/equipmentDoorHome',
            meta: {
                cache: true,
                title: "门禁设备"
            },
            component: () => import('@/views/equipment/door/Home.vue')
        },
        {
            name: "DoorHolderLogTable",
            path: '/DoorHolderLogTable',
            meta: {
                cache: true,
                title: "住户通行记录"
            },
            component: () => import('@/views/equipment/door/log/HolderLogTable.vue')
        },
        {
            name: "DoorStaffLogTable",
            path: '/DoorStaffLogTable',
            meta: {
                cache: true,
                title: "员工通行记录"
            },
            component: () => import('@/views/equipment/door/log/StaffLogTable.vue')
        },
        {
            name: "VistorLogTable",
            path: '/VistorLogTable',
            meta: {
                cache: true,
                title: "访客通行记录"
            },
            component: () => import('@/views/equipment/door/log/VistorLogTable.vue')
        },
        {
            name: "DoorStrangerLogTable",
            path: '/DoorStrangerLogTable',
            meta: {
                cache: true,
                title: "陌生人通行记录"
            },
            component: () => import('@/views/equipment/door/log/StrangerLogTable.vue')
        },
        {
            name: "equipmentDoorGroupTable",
            path: '/equipmentDoorGroupTable',
            meta: {
                title: "门禁组管理"
            },
            component: () => import('@/views/equipment/door/group/Table.vue')
        },
        {
            name: "equipmentCardTable",
            path: '/equipmentCardTable',
            meta: {
                // 该页面有引用缓存数据，设置为fase，强制刷新缓存数据
                cache: false,
                title: "门卡管理"
            },
            component: () => import('@/views/equipment/card/Table.vue')
        },
        {
            name: "scripAuthDoorTable",
            path: '/scripAuthDoorTable/:id',
            meta: {
                title: "授权门禁",
                parentName: 'equipmentCardTable'
            },
            component: () => import('@/views/equipment/card/auth/ScripAuthDoorTable.vue')
        },
        {
            name: "kqDoorTable",
            path: '/kqDoorTable',
            meta: {
                cache: true,
                title: "考勤门禁"
            },
            component: () => import('@/views/kq/door/Table.vue')
        },
        {
            name: "kqBcTable",
            path: '/kqBcTable',
            meta: {
                cache: true,
                title: "考勤班次"
            },
            component: () => import('@/views/kq/bc/Table.vue')
        },
        {
            name: "kqGzTable",
            path: '/kqGzTable',
            meta: {
                cache: true,
                title: "考勤规则"
            },
            component: () => import('@/views/kq/gz/Table.vue')
        },
        {
            name: "gzDateTable",
            path: '/gzDateTable',
            meta: {
                cache: true,
                title: "特殊日期"
            },
            component: () => import('@/views/kq/date/DateTable.vue')
        },
        {
            name: "kqLogHome",
            path: '/kqLogHome',
            meta: {
                title: "考勤记录"
            },
            component: () => import('@/views/kq/log/Home.vue')
        },
        {
            name: "kqXzTable",
            path: '/kqXzTable',
            meta: {
                title: "考勤审批"
            },
            component: () => import('@/views/kq/xz/Table.vue')
        },
        {
            name: "equipmentDoorVistorTable",
            path: '/equipmentDoorVistorTable',
            meta: {
                title: "访客邀约记录"
            },
            component: () => import('@/views/equipment/door/vistor/Table.vue')
        },
        {
            name: "equipmentLadderTable",
            path: '/equipmentLadderTable',
            meta: {
                title: "梯控管理"
            },
            component: () => import('@/views/equipment/ladder/Table.vue')
        },
        {
            name: "ladderConfTable",
            path: '/ladderConfTable/:id',
            meta: {
                parentName: 'equipmentLadderTable',
                title: "梯控配置"
            },
            component: () => import('@/views/equipment/ladder/ConfTable.vue')
        },
        {
            name: "LadderScripTable",
            path: '/LadderScripTable',
            meta: {
                title: "梯控授权"
            },
            component: () => import('@/views/equipment/ladder/scrip/LadderScripTable.vue')
        },
        {
            name: "scripPortTable",
            path: '/scripPortTable/:id',
            meta: {
                parentName: 'LadderScripTable',
                title: "授权配置"
            },
            component: () => import('@/views/equipment/ladder/scrip/port/PortTable.vue')
        }
    ]
}]